package com.yigo.toc.infra.repo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.tangzc.mpe.autotable.annotation.Column;
import com.tangzc.mpe.autotable.annotation.ColumnId;
import com.tangzc.mpe.autotable.annotation.Table;
import com.tangzc.mpe.autotable.strategy.mysql.data.MysqlTypeConstant;
import com.yigo.framework.base.BasePO;
import com.yigo.toc.api.constants.ToStatusEnum;
import lombok.Data;

/**
 * @author chenzl
 */
@Data
@Table(value = "toc_tc_head", comment = "订单头表")
public class TocOrderHeadPO extends BasePO {
    @ColumnId(mode = IdType.ASSIGN_ID, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 20)
    private Long id;
    @Column(comment = "交易订单号", length = 30, notNull = true)
    private String toNo;
    @Column(comment = "订单状态", length = 2, type = MysqlTypeConstant.TINYINT)
    private ToStatusEnum status;
}
